package org.eclipse.emf.cdo.ui.merge.conflict;

import org.eclipse.emf.cdo.common.id.CDOIDAndVersion;
import org.eclipse.emf.cdo.common.revision.delta.CDORevisionDelta;
import org.eclipse.emf.spi.cdo.DefaultCDOMerger.ChangedInSourceAndDetachedInTargetConflict;

/**
 * An Extension to the Conflict provided by CDO. Adds the target ID for this conflict.
 * @author Thomas Halmeschlager
 *
 */
public class extChangedInSourceAndDetachedInTargetConflict extends
		ChangedInSourceAndDetachedInTargetConflict {
	
	/** The target CDO ID. */
	private CDOIDAndVersion targetID;
	
	/**
	 * Instantiates a new changed-in-source, detached-in-target conflict.
	 *
	 * @param sourceDelta the revision delta of the source branch
	 */
	public extChangedInSourceAndDetachedInTargetConflict(
			CDORevisionDelta sourceDelta) {
		super(sourceDelta);
	}
	
	/**
	 * Gets the target CDO ID.
	 *
	 * @return the target CDO ID
	 */
	public CDOIDAndVersion getTargetID() {
		return targetID;
	}
	
	/**
	 * Sets the target CDO ID.
	 *
	 * @param targetID the new target CDO ID
	 */
	public void setTargetID(CDOIDAndVersion targetID) {
		this.targetID = targetID;
	}

}
